import request from '@/utils/request'

export function subjectCategory(){
  return request({
    url: '/exam/subject/category',
    method: 'get',
  })
}

export function listScore(query){
  return request({
    url: '/exam/score/list',
    method: 'get',
    params: query
  })
}

// 查询任务列表
export function listExam(query) {
  return request({
    url: '/exam/list',
    method: 'get',
    params: query
  })
}

// 新增考试
export function addExam(data) {
  return request({
    url: '/exam/add',
    method: 'post',
    data: data
  })
}

// 更改考试
export function updateExam(data) {
  return request({
    url: '/exam/update',
    method: 'post',
    data: data
  })
}
